<script setup>
	import { onLoad } from '@dcloudio/uni-app'
	import { ref } from 'vue'
	
	const customBar = getApp().globalData.customBar
	const config = getApp().globalData.config
	const loading = ref(false)
	
	onLoad(() => {
		
	})
</script>

<template>
	<view class="app-container" :style="{paddingTop: customBar + 12 + 'px'}">
		<navbar text="个人中心"></navbar>
		<view class="app-head">
			<uv-avatar :src="config.appInfo.logo" size="76"></uv-avatar>
			<view class="head-info">
				<view class="name uv-line-1">{{config.appInfo.autor}}</view>
				<view class="des">{{config.appInfo.des}}</view>
			</view>
		</view>
		<view class="app-content">
			<view class="show-box">
				<view class="show-item">
					<text class="num">5</text>
					<text class="tip">快捷导航</text>
				</view>
				<view class="show-item">
					<text class="num">1</text>
					<text class="tip">游戏个数</text>
				</view>
				<view class="show-item">
					<text class="num">1</text>
					<text class="tip">大模型数目</text>
				</view>
			</view>
		</view>
	</view>
</template>

<style lang="scss" scoped>
	.app-container{
		padding-left: 24rpx;
		padding-right: 24rpx;
		.app-head{
			padding: 24rpx;
			display: flex;
			align-items: center;
			gap: 24rpx;
			border: 2rpx solid rgba(59, 130, 246, 0.3);
			border-radius: 24rpx;
			background: rgba(30, 64, 175, 0.3);
			.head-info{
				width: calc(100% - 100rpx);
				display: flex;
				flex-direction: column;
				gap: 6rpx;
				.name{
					font-weight: 600;
					color: #BFDBFE;
					font-size: var(--theme-lg);
					line-height: var(--theme-lg-line);
				}
				.des{
					color: rgba(147, 197, 253, 0.7);
					font-size: var(--theme-sm);
					line-height: var(--theme-sm-line);
				}
			}
		}
		.app-content{
			padding-top: 36rpx;
			.show-box{
				display: flex;
				gap: 24rpx;
				.show-item{
					flex: 1;
					padding: 20rpx;
					display: flex;
					flex-direction: column;
					gap: 6rpx;
					border: 2rpx solid rgba(59, 130, 246, 0.3);
					border-radius: 24rpx;
					background: rgba(30, 64, 175, 0.3);
					text-align: center;
					.num{
						font-weight: 600;
						color: #BFDBFE;
					}
					.tip{
						color: rgba(96, 165, 250, 0.7);
						font-size: var(--theme-sm);
						line-height: var(--theme-sm-line);
					}
				}
			}
		}
	}
</style>